// home 医院:等级

import type { ResponseDataRoot } from '@/global/root_type'

// 医院等级 地区
export interface IHomeHospitalLevelContent {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: {}
  parentId: number
  name: string
  value: string
  dictCode: string
  hasChildren: boolean
}

export type IHomeHospitalLevelArr = IHomeHospitalLevelContent[]

export interface IHomeHospitalTabLevel extends ResponseDataRoot {
  data: IHomeHospitalLevelArr
}

// 医院卡片数据 类型

export interface IHomeHospitalCardList {
  id?: string
  createTime?: string
  updateTime?: string
  isDeleted?: number
  param?: {
    hostypeString?: string
    fullAddress?: string
  }
  hoscode?: string
  hosname?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  address?: string
  logoData?: string
  intro?: string
  route?: string
  status?: number
  bookingRule?: {
    cycle: number
    releaseTime: string
    stopTime: string
    quitDay: number
    quitTime: string
    rule: string[]
  }
}
export type IHomeHospitalCardListArr = IHomeHospitalCardList[]

export interface IHomeHospitalCardListData {
  content?: IHomeHospitalCardListArr
  pageable?: {
    sort: {
      sorted: boolean
      unsorted: boolean
      empty: boolean
    }
    pageNumber: number
    pageSize: number
    offset: number
    paged: boolean
    unpaged: boolean
  }
  totalPages?: number
  totalElements?: number
  last?: boolean
  first?: boolean
  sort?: {
    sorted: boolean
    unsorted: boolean
    empty: boolean
  }

  numberOfElements?: number
  size?: number
  number?: number
  empty?: boolean
}
export interface IHomeHospitalCard extends ResponseDataRoot {
  data: IHomeHospitalCardListData
}

export interface ISearchHospitalRes extends ResponseDataRoot {
  data: IHomeHospitalCardListArr
}
